package org.example.service.post.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.annotation.LogTrace;
import org.example.dao.dao.post.PThemeDao;
import org.example.dao.entity.post.PTheme;
import org.example.service.post.ThemeService;
import org.example.skytool.redis.RedisConstants;
import org.example.skytool.redis.RedisUtils;
import org.springframework.stereotype.Service;
import  org.example.utils.post.theme.RedisThemeService;

import javax.annotation.Resource;

/**
 * @author 22449
 */
@Service("themeService")
public class ThemeServiceImpl implements ThemeService {

    @Resource
    private PThemeDao pThemeDao;

    @Resource
    private RedisThemeService redisThemeService;

    @Override
    @LogTrace
    public IPage<PTheme> getThemeList(Integer start, Integer limit) {
        return redisThemeService.getThemeList(start,limit);
    }


}
